<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="../include/taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>商户添加</title>


<link rel="stylesheet" type="text/css"	href="${ctx}/resources/media/css/select2_metro.css" />
<link href="${ctx}/resources/media/css/chosen.css" rel="stylesheet" type="text/css" />


</head>
<body>
	<div class="row-fluid profile">
		<div class="span12">
			<!--BEGIN TABS-->
			<div class="tabbable tabbable-custom tabbable-full-width">
				<ul class="nav nav-tabs">
					<li class="active"><a href="${ctx}/merchant/form">商户添加</a></li>
				</ul>
				<div class="tab-content">
					<!--end tab-pane-->
					<div class="tab-pane profile-classic row-fluid active" id="tab_1_2">
						<div class="span12">
							<!-- BEGIN SAMPLE FORM PORTLET-->
							<div class="portlet box blue">
								<div class="portlet-title">
									<div class="caption">
										<i class="icon-reorder"></i> <span class="hidden-480">商户添加</span>
									</div>
								</div>
								<!-- END SAMPLE FORM PORTLET-->
								<div class="portlet-body form ">
									<form class="form-horizontal" id="form" action="${ctx}/merchant/update"  method="post">
										<fieldset>
											<h4 class="form-section">商户信息</h4>
											<div class="row-fluid">
												<div class="span6">
													<div class="control-group">

														<!-- Text input-->
														<label class="control-label">商户编号</label>
														<div class="controls">
															<input type="text" id="code" name="code"
																class="m-wrap input-xlarge" 
																maxlength="20"> <span class="help-inline"></span>
														</div>
													</div>
												</div>
												<div class="span6">
													<div class="control-group">

														<!-- Text input-->
														<label class="control-label">商户名称</label>
														<div class="controls">
															<input type="text" id="title" name="name" class="m-wrap input-xlarge" maxlength="100" />
															<p class="help-block"></p>
														</div>
													</div>
												</div>
											</div>
											<div class="row-fluid">
												<div class="span6">
													<div class="control-group">

														<!-- Text input-->
														<label class="control-label">商户类型</label>
														<div class="controls">
															<select id="type" name="type" class="select" style="width:285px"> 
														                                                         
                                                               <option value=0 selected="selected">美金服商户</option>
                                                               <option value=1 >美疯啦商户</option>
                                                             
                                                            </select>
														</div>
													</div>
												</div>
												<div class="span6">
													<div class="control-group">

														<!-- Text input-->
														<label class="control-label">开户银行</label>
														<div class="controls">
															<input type="text" name="acctOpeningBank" id="acctOpeningBank"
																class="m-wrap input-xlarge"  />
															<p class="help-block"></p>
														</div>
													</div>
												</div>
											</div>
											<div class="row-fluid">
												<div class="span6">
													<div class="control-group">

														<!-- Text input-->
														<label class="control-label">开户卡号</label>
														<div class="controls">
															<input type="text" name="cardNumber"
																class="m-wrap input-xlarge"  maxlength="20" />
															<p class="help-block"></p>
														</div>
													</div>
												</div>
												<div class="span6">
													<div class="control-group">

														<!-- Text input-->
														<label class="control-label">开户户名</label>
														<div class="controls">
															<input type="text" name="accountTitle" id="accountTitle"
																class="m-wrap input-xlarge"  maxlength="100" />
															<p class="help-block"></p>
														</div>
													</div>
												</div>
											</div>
											
											
											<div class="row-fluid">
												<div class="span6">
													<div class="control-group">

														<!-- Text input-->
														<label class="control-label">省</label>
														<div class="controls">
															<select id="province" name="province" style="width:283px"></select>
														</div>
													</div>
												</div>

											</div>		
											
											
											<div class="row-fluid">
												<div class="span6">
													<div class="control-group">

														<label class="control-label">市</label>
														<div class="controls">
															<select id="city"  name ="city" style="width:283px"></select>
														</div>
													</div>
												</div>
											</div>	
											<div class="row-fluid">
												<div class="span6">
													<div class="control-group">

														<label class="control-label">区</label>
														<div class="controls">
														<select id="area"  name="area" style="width:283px"></select>
														</div>
													</div>
												</div>
										</div>
											<div class="row-fluid">
												<div class="span6">
													<div class="control-group">

													<label class="control-label">详细地址</label>
														<div class="controls">
															<input type="text" name="address" id="address"
																class="m-wrap input-xlarge" maxlength="200" />
															<p class="help-block"></p>
														</div>
													</div>
												</div>
										</div>										
											
										</fieldset>
										<div class="form-actions">
											<button type="submit" class="btn blue ibtsubmit">
												<i class="icon-ok"></i> 保存
											</button>
											<button type="button" onclick="history.go(-1)" class="btn">取消</button>
										</div>
									</form>
								</div>
							</div>
						</div>
					</div>
				</div>
				<!--END TABS-->
			</div>
		</div>
	</div>
	<script type="text/javascript" src="${ctx}/resources/media/js/jquery.dataTables.js"></script>
	<script type="text/javascript" src="${ctx}/resources/media/js/DT_bootstrap.js"></script>
	<script type="text/javascript" src="${ctx}/resources/media/js/select2.min.js"></script>

	<script type="text/javascript" src="${ctx}/resources/media/js/form-wizard.js"></script>
	<script type="text/javascript" src="${ctx}/resources/media/js/jquery.validate.min.js"></script>	
	<script type="text/javascript" src="${ctx}/resources/media/js/chosen.jquery.min.js"></script>
	<script type="text/javascript" src="${ctx}/resources/plugins/pcasunzip.js"></script>
	
	<script type="text/javascript">
		$(function() {

			new PCAS("province","city","area","${merchant.province }","${merchant.city }","${merchant.area }");
			
			$("select").select2();
			FormWizard.init();
		
			
		

		});
	</script>


</body>
</html>